package com.example.week8_mybatis_plus.config;

import com.baomidou.mybatisplus.generator.FastAutoGenerator;

public class CodeGenerator {

    public static void main(String[] args) {
        FastAutoGenerator.create(
                "jdbc:mysql://localhost:3306/goods?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=GMT%2B8",
                        "user",
                        "12345678")
                .globalConfig(builder -> {
                    builder
                            .author("jiangbo")
                            .fileOverride()
                            .outputDir("D:\\Projects\\Java\\JavaEE\\assignments\\Week8_Mybatis_Plus\\src\\main\\java");
                })
                .packageConfig(builder -> {
                    builder.parent("com.example.week8_mybatis_plus");
                })
                .execute();
    }

}
